#!/user/bin/env python3
# -*- coding: utf-8 -*-
"""
--------------------------------------
    Author:     JiChao_Song
    Date  :     2022/2/14 16:14
    Desc  :
--------------------------------------
"""
from common.tools.CommonRequestsClient import GetRequestClient


def stat_requests():
    url = 'http://127.0.0.1:8089'

    path = '/stats/requests'

    getRequestClient = GetRequestClient()

    getRequestClient.url = url + path

    res = getRequestClient.result()

    return res.json()


def stat_stop():
    url = 'http://127.0.0.1:8089'

    path = '/stop'

    getRequestClient = GetRequestClient()

    getRequestClient.url = url + path

    res = getRequestClient.result()

    return res.json()
